angular.module("driver").controller("UsersCtrl", ['$scope', '$meteor', '$rootScope', '$state', '$ionicPopup', 'Map',
  function($scope, $meteor, $rootScope, $state, $ionicPopup, Map) {

$scope.clientSideList = [
    { text: "支付宝支付", value: "支付宝支付" },
    { text: "微信支付", value: "微信支付" },
    { text: "银联支付", value: "银联支付" },
    { text: "paypal支付", value: "paypal支付" }
  ];

  /*
  $scope.serverSideList = [
    { text: "Go", value: "go" },
    { text: "Python", value: "py" },
    { text: "Ruby", value: "rb" },
    { text: "Java", value: "jv" }
  ];
  */

  $scope.data = {
    clientSide: ''
  };
  
 /*
  $scope.serverSideChange = function(item) {
    console.log("Selected Serverside, text:", item.text, "value:", item.value);
  };
  */


$scope.recharge = function () {
      //console.log(request[0]);

      var confirmPopup = $ionicPopup.confirm({
     title: '温馨提示',
     template: '线上交易功能暂未开放，敬请期待！',
     cancelText: '取消', 
     cancelType: 'button-royal button-outline',
     okText: '确定', 
     okType: 'button-assertive button-outline',
   });
   confirmPopup.then(function(res) {
     if(res) {
      $state.go('main.amap');
     } else {
       //console.log('继续等待');
     }
   });


      
    };


  }
]);
